import App from './App'
//1导入store
import store from './store'

//导入发请求的模块  暂命名为axios
import axios from './utils/request.js';
//将axios配置给uni
uni.$axios = axios
// #ifndef VUE3
import Vue from 'vue'
//关闭生产提示
Vue.config.productionTip = false
//申明当前组件App代表整个应用application
App.mpType = 'app'
const app = new Vue({
	...App,
	//2将store挂载到全局的app实例
	store
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
//挂载实例
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
